package com.service.impl;

import com.entity.User;
import com.mapper.ModifyFormMapper;
import com.service.ModifyFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ModifyFormServiceImpl implements ModifyFormService {

    @Autowired
    ModifyFormMapper modifyFormMapper;

    @Override
    public User selId(Integer id) {
      return  modifyFormMapper.findId(id);
    }

    @Transactional
    @Override
    public int updateUserInfo(User user) {
       return modifyFormMapper.updateUserInfoByid(user);
    }
}
